from flask_sqlalchemy import SQLAlchemy

db = SQLAlchemy()

def init_db(app):
    db.init_app(app)
    
    # app 实例运行的上下文 
    with app.app_context():
        db.create_all() 


        